<template>
  <div>
    <div class="header">
      <img src="./assets/img/index (1) .png" alt @click="goBack" />
      {{$route.meta.title}}
    </div>
    <!-- <transition enter-active-class="animate__animated animate__backInLeft"> -->
      <router-view class="con"></router-view>
    <!-- </transition> -->
  </div>
</template>

<script>
export default {
  methods: {
    goBack() {
      this.$router.go(-1);
    },
  },
};
</script>

<style scoped>
.header {
  width: 100vw;
  height: 0.8rem;
  background: #ff4400;
  color: #fff;
  text-align: center;
  line-height: 0.8rem;
  position: fixed;
  left: 0;
  top: 0;
  font-size: 20px;
  float: left;
}
.con {
  padding-top: 0.8rem;
  /* height: 3rem; */
}
.header img {
  width: 0.3rem;
  height: 0.4rem;
  position: absolute;
  top: 0.1rem;
  left: 0.2rem;
}
</style>